<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<body>
<!--<p th:each="videos:${videoList}" th:text="${videos.}"></p>-->
<h2><a class="btn btn-sm btn-success" th:href="@{/video/toaddvideo}">添加视频</a> </h2>
    <table class="table table-bordered table-striped table-hover table-condensed table-responsive text-center " >
        <thead>
        <tr class="success ">
            <th>视频编号:</th>
            <th>类型编号:</th>
            <th>管理员编号:</th>
            <th>用户编号:</th>
            <th>视频名称:</th>
            <th>视频地址:</th>
            <th>视频发布时间:</th>
            <th>视频状态:</th>
            <th>视频播放数量:</th>
            <th>视频点赞数量:</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr class="info" th:each="videos:${videoList}">
            <td th:text="${videos.getVideo_id()}"></td>
            <td th:text="${videos.getType_id()}"></td>
            <td th:text="${videos.getManager_id()}"></td>
            <td th:text="${videos.getUser_id()}"></td>
            <td th:text="${videos.video_name}"></td>
            <td th:text="${videos.getVideo_url()}"></td>
            <td th:text="${ #dates.format(videos.getVideo_time(),'yyyy年/MM月/dd日 HH:mm:ss')}"></td>
            <td th:text="${videos.getVideo_status()}"></td>
            <td th:text="${videos.getVideo_play_count()}"></td>
            <td th:text="${videos.getVideo_good_count()}"></td>
            <td>
<!--                <a class="btn btn-sm btn-primary" th:href="@{/toUpdate/}+${emp.getId()}">编辑</a>-->
<!--                <a class="btn btn-sm btn-danger" th:href="@{/delemp/}+${emp.getId()}">删除</a>-->
                <a class="btn btn-danger" th:href="@{/video/toupdatevideo/}+${videos.getVideo_id()}">更改</a> |
                <a class="btn btn-danger" th:href="@{/video/del/}+${videos.getVideo_id()}">删除</a>
            </td>
        </tr>
        </tbody>
    </table>
</body>
</html>